﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Controls.Primitives;
using System.Windows.Input;

namespace SampleApp
{
    class ViewModelPage1
    {
        public ViewModelPage1(MvvmCrystalTool.INavigationService nav)
        {
            GotoPage2 = new GalaSoft.MvvmLight.Command.RelayCommand(() =>
            {
                nav.Navigate(ViewModelLocator.Page2);
            });
        }

        public ICommand GotoPage2 { get; private set; }
    }
}
